package com.dongdongshop.service.impl.admin;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.AdminMapper;
import com.dongdongshop.pojo.admin.TbUser;
import com.dongdongshop.service.admin.AdminService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
@org.springframework.stereotype.Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper tbUserMapper;

    @Override
    public TbUser getAdminByUsername(String username) {
        return tbUserMapper.getAdminByUsername(username);
    }
}
